package com.pithypan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync            //异步调用
@SpringBootApplication
@MapperScan(basePackages = {"com.pithypan.mapper"})
@EnableTransactionManagement
@EnableScheduling       //启用定时器
public class PithyPanApplication {

    public static void main(String[] args) {
        SpringApplication.run(PithyPanApplication.class, args);
    }
}
